#ifndef BAMBOOREEL_H_
#define BAMBOOREEL_H_
#include <Jaguar.h>
#include <Solenoid.h>
#include <Joystick.h>
#include <Encoder.h>
#include <DigitalInput.h>

class SpeedController;
class Joystick;

class BambooReel
{
public:
	BambooReel(UINT32 MotorChannel, UINT32 SolenoidChannel, UINT32 SwitchSlot, UINT32 SwitchChannel, UINT32 EncoderA, UINT32 EncoderB, Joystick *stick);
	virtual ~BambooReel(void);
	
	void Teleop();
	
	
private:
	enum {kRest, kKick, kPull, kUnwind}; 
	SpeedController *m_motor;
	Joystick *m_stick;
	Solenoid* m_Solenoid;
	DigitalInput* m_switch;
	Encoder* m_encoder;
	double m_kickTime;
	int m_state;
	enum {KickButton = 97};
};

#endif
